package cn.edu.xju.test;

import java.util.Date;

public class Student {
    private String name;
    private Date date;


    public Student(String name, Date date) {
        this.name = name;
        this.date = date;
    }

    public void init(){
        System.out.println("Student... init()...");
    }

    public Student(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", date=" + date +
                '}';
    }

}
